﻿using Mitek.Models.Mikek;
using Mitek.Repositories.Interfaces;
using Mitek.Repositories.Interfaces.Mitek;
using Mitek.Services.Interfaces.Mitek;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mitek.Services.Mitek
{
     
   public class MitekDataService: BaseService<MitekData>, IMitekDataService
    {
        private readonly IMitekDataRepository _imitekrepository;
        private readonly IUnitOfWork _unitOfWork;

        public MitekDataService(IMitekDataRepository imitekrepository, IUnitOfWork unitOfWork)
            : base(imitekrepository, unitOfWork)
        {
            this._imitekrepository = imitekrepository;
            this._unitOfWork = unitOfWork;
        }

        public void AddMitekData(MitekData obj)
        {
            _imitekrepository.Add(obj);
            _unitOfWork.Commit();
        }
    }
}
